package com.icode.core.dto.user;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Pattern;

/**
 * Created with IntelliJ IDEA.
 * User: sunk
 * Date: 14-12-26
 * Time: 上午11:16
 * To change this template use File | Settings | File Templates.
 */
public class LoginDTO {
    @Pattern(regexp = "^\\d{11}$", message = "请输入正确的电话号码!")
    private String  userName;

    @Length(min = 6, max = 6, message = "输入6位密码!")
    private String password;

    private String guid;

    public LoginDTO() {
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getGuid() {
        return guid;
    }

    public void setGuid(String guid) {
        this.guid = guid;
    }
}
